﻿using RedisDemo.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedisDemo.Service.IServices
{
    public interface IUserService
    {
        Task<Account> GetAllUsers(int id);

        Task Pub(); //发布

        Task Sub(); //订阅

        Task UnsubscribeAsync();//取消订阅

        Task UnsubscribeAllAsync();//取消全部订阅
    }
}
